package com.cndw.kungfu.vo;

import com.cndw.kungfu.domain.Pendant;

/**
 * 场景挂件的vo
 * @author fantadust [9677889@qq.com]
 * @date 2011-9-23 下午3:54:53
 */
public class PendantVO {
	/**
	 * 唯一编号
	 */
	private int uniqueId;
	
	private int id;
	
	private String name;
	/**
	 * 类型 0采集  1 机关
	 */
	private int type;
	private int x;
	private int y;	
	private String icon;	
	/**
	 * 需要任务激活
	 */
	private int taskId;	
	/**
	 * 采集可获得的 物品id
	 */
	private int gainId;
	/**
	 * 刷新方式
	 */
	private int typeRefresh;	
	/**
	 * 间隔
	 */
	private int intervalTime;
	public PendantVO(int uniqueId,int x,int y,Pendant pendant){
		this.uniqueId = uniqueId;
		this.x = x;
		this.y = y;
		id = pendant.getId();
		name = pendant.getName();
		type = pendant.getType();

		icon = pendant.getIcon();
		taskId = pendant.getTaskId();
		typeRefresh = pendant.getTypeRefresh();
		intervalTime = pendant.getIntervalTime();
		gainId = pendant.getGainId();
		
	}
	public int getUniqueId() {
		return uniqueId;
	}
	public void setUniqueId(int uniqueId) {
		this.uniqueId = uniqueId;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public int getTaskId() {
		return taskId;
	}
	public void setTaskId(int taskId) {
		this.taskId = taskId;
	}
	public int getTypeRefresh() {
		return typeRefresh;
	}
	public void setTypeRefresh(int typeRefresh) {
		this.typeRefresh = typeRefresh;
	}
	public int getIntervalTime() {
		return intervalTime;
	}
	public void setIntervalTime(int intervalTime) {
		this.intervalTime = intervalTime;
	}
	public int getGainId() {
		return gainId;
	}
	public void setGainId(int gainId) {
		this.gainId = gainId;
	}
	
}
